package com.wanxi.arraylist;

import java.util.ArrayList;


public class StudentArrayList {



    public static void main(String[] args) {
        Student student1 = new Student("陈明", 27);
        Student student2 = new Student("王海云", 25);
        Student student3 = new Student("江黎", 28);

        //ArrayList<String> array = new ArrayList<String>();
        ArrayList<Student> studentArrayList = new ArrayList<Student>();

        studentArrayList.add(student1);
        studentArrayList.add(student2);
        studentArrayList.add(student3);

//        for (int i = 0; i < studentArrayList.size(); i++) {
//
//
//
//        }
System.out.println(student1.toString());

System.out.println(student1.equals(student2));



    }

}
